import request from "@/utils/request";

export function listData(data) {
  return request({
    url: `/order/recharge_list`,
    method: "post",
    data
  });
}

export function getLog(params) {
  return request({
    url: `/export/log-list`,
    method: "get",
    params
  });
}

export function searchList() {
  return request({
    url: `/order/recharge_search_list`,
    method: "post"
  });
}

export function getExcel(params) {
  return request({
    url: `/export/user-recharge`,
    method: "get",
    params
  });
}

export function getReceiveAccount(pay_method) {
  return request({
    url: "/order/receive-account",
    method: "get",
    params: { pay_method }
  });
}

//
// export function saveData(form) {
//   return request({
//     url: '/nobility/add',
//     method: 'post',
//     data: form
//   });
// }
//
// export function updateData(form) {
//   return request({
//     url: '/nobility/save',
//     method: 'post',
//     data: form
//   });
// }
//
// export function deleteData(query) {
//   return request({
//     url: '/nobility/del',
//     method: 'post',
//     data: query
//   });
// }

export function deleteData() {
  return Promise.reject(new Error("接口不可用 ！"));
}
